package com.niuwa.p2p.entity.business;

import java.math.BigDecimal;
import java.util.Date;

public class InvestTrans {
	
	private Long version;
	
    private String investNo;

    private String projectNo;

    private Long custId;

    private BigDecimal investAmount;

    private String status;

    private Date investTime;

    private String investMethod;

    private String recordNo;

    private BigDecimal investPrice;

    private String srcCreditNo;
    
    private String productCode;
    
    //新增字段，前台使用
    private String loginName;
    
    private String newCreditNo;//新的债权编号，债权转让时是使用
    
    public InvestTrans(){
    	
    }
    
    public InvestTrans(Long version, String investNo, String projectNo, Long custId, BigDecimal investAmount, String status, Date investTime, String investMethod, String recordNo, BigDecimal investPrice, String srcCreditNo, String productCode) {
		this.version = version;
		this.investNo = investNo;
		this.projectNo = projectNo;
		this.custId = custId;
		this.investAmount = investAmount;
		this.status = status;
		this.investTime = investTime;
		this.investMethod = investMethod;
		this.recordNo = recordNo;
		this.investPrice = investPrice;
		this.srcCreditNo = srcCreditNo;
		this.productCode = productCode;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}

	public String getInvestNo() {
        return investNo;
    }

    public void setInvestNo(String investNo) {
        this.investNo = investNo == null ? null : investNo.trim();
    }

    public String getProjectNo() {
        return projectNo;
    }

    public void setProjectNo(String projectNo) {
        this.projectNo = projectNo == null ? null : projectNo.trim();
    }

    public Long getCustId() {
        return custId;
    }

    public void setCustId(Long custId) {
        this.custId = custId;
    }

    public BigDecimal getInvestAmount() {
        return investAmount;
    }

    public void setInvestAmount(BigDecimal investAmount) {
        this.investAmount = investAmount;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getInvestTime() {
        return investTime;
    }

    public void setInvestTime(Date investTime) {
        this.investTime = investTime;
    }

    public String getInvestMethod() {
        return investMethod;
    }

    public void setInvestMethod(String investMethod) {
        this.investMethod = investMethod == null ? null : investMethod.trim();
    }

    public String getRecordNo() {
        return recordNo;
    }

    public void setRecordNo(String recordNo) {
        this.recordNo = recordNo == null ? null : recordNo.trim();
    }

    public BigDecimal getInvestPrice() {
        return investPrice;
    }

    public void setInvestPrice(BigDecimal investPrice) {
        this.investPrice = investPrice;
    }

    public String getSrcCreditNo() {
        return srcCreditNo;
    }

    public void setSrcCreditNo(String srcCreditNo) {
        this.srcCreditNo = srcCreditNo == null ? null : srcCreditNo.trim();
    }

	public String getProductCode() {
		return productCode;
	}

	public void setProductCode(String productCode) {
		this.productCode = productCode;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getNewCreditNo() {
		return newCreditNo;
	}

	public void setNewCreditNo(String newCreditNo) {
		this.newCreditNo = newCreditNo;
	}
	
	
}